package com.signal;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.ListView;
import android.widget.AdapterView.OnItemClickListener;

public class Tela5 extends Activity implements OnItemClickListener{
	
	private ListView mListView;
	private Button mButtonContinuar;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		setContentView(R.layout.layout_tela5);
		
		mListView = (ListView) findViewById(R.id.tela5_list);		
		mButtonContinuar = (Button)findViewById(R.id.tela5_button_continuar);
		
		String[] itens = getResources().getStringArray(R.array.array_servicos);
		
		ArrayAdapter<String> arrayAdapter = new ArrayAdapter<String>(this, R.layout.simple_list_layout,R.id.item_simple,itens);
		
		mListView.setAdapter(arrayAdapter);
		mListView.setOnItemClickListener(this);
		
		mButtonContinuar.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View arg0) {
				//Intent i = new Intent(Tela5.this,Tela7.class);
				Intent i = new Intent(Tela5.this,TelaResumo.class);
				startActivity(i);
			}
		});
		
	}
	
	@Override
	public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {
		// TODO Auto-generated method stub
		
	}
	
}
